from django.contrib import admin
from django.urls import path, re_path, include
# 富文本编辑器设置
from django.views.static import serve
from django.conf import settings

urlpatterns = [
    path('admin/', admin.site.urls),
    # 富文本编辑器配置
    path('ueditor', include('DjangoUeditor.urls')),
    re_path('^media/(?P<path>.*)$', serve, {
        'document_root': settings.MEDIA_ROOT
    }),
    path('', include('book.urls')),
]
